<h1>User message List</h1>

<table>
  <thead>
    <tr>
      <th>Id</th>
      <th>Message</th>
      <th>Recipient</th>
      <th>Folder</th>
      <th>Flag</th>
      <th>Replied</th>
      <th>Trashed</th>
      <th>Seen</th>
      <th>Created at</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($user_message_list as $user_message): ?>
    <tr>
      <td><a href="<?php echo url_for('user_message/edit?id='.$user_message->getId()) ?>"><?php echo $user_message->getId() ?></a></td>
      <td><?php echo $user_message->getMessageId() ?></td>
      <td><?php echo $user_message->getRecipientId() ?></td>
      <td><?php echo $user_message->getFolder() ?></td>
      <td><?php echo $user_message->getFlag() ?></td>
      <td><?php echo $user_message->getReplied() ?></td>
      <td><?php echo $user_message->getTrashed() ?></td>
      <td><?php echo $user_message->getSeen() ?></td>
      <td><?php echo $user_message->getCreatedAt() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('user_message/new') ?>">New</a>
